<script>
  export default {
    onLaunch: function() {}
  }
</script>

<style lang="scss">
  /*每个页面公共css */
  @import '@/uni_modules/uview-ui/index.scss';

  page {
    min-height: 100%;
    color: $fc;
    font-size: $fs;
    line-height: $lh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji',
      'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    background-color: $bg-fc;
    -webkit-overflow-scrolling: touch;
  }

  view,
  scroll-view,
  swiper,
  match-media,
  movable-area,
  movable-view,
  cover-view,
  cover-image,
  icon,
  text,
  rich-text,
  progress,
  button,
  checkbox,
  editor,
  form,
  input,
  label,
  picker,
  picker-view,
  radio,
  slider,
  switch,
  textarea,
  navigator,
  audio,
  camera,
  image,
  video,
  live-player,
  live-pusher,
  map,
  canvas,
  web-view {
    // flex-shrink: 0;
    // box-sizing: border-box;
  }

  input {
    height: 1.1em;
    min-height: 1em;
    color: $fc;
    font-size: $fs;
    line-height: $lh;
    caret-color: $main;

    .input-placeholder {
      color: $fcl;
      font-size: inherit;
      line-height: inherit;
    }

    &::-ms-clear,
    &::-ms-reveal {
      display: none;
    }
  }

  button {
    font-size: inherit;
    line-height: inherit;
    margin: 0;
    padding: 0;
    background-color: transparent;
    border: none;
    outline: none;

    &::after {
      border: none;
    }
  }

  textarea {
    width: 100%;
  }

  [hidden] {
    display: none !important;
  }

  rich-text {
    color: $fc;
    font-size: $fs;
    line-height: $fs + 10;

    ::v-deep [src] {
      max-width: 100%;
    }
  }

  picker {
    flex: 1;
  }


  .u-popup {
    flex: 0 !important;
  }

  .u-modal__content {
    padding: 0 !important;
  }

  .u-code-input {
    justify-content: space-between !important;
  }

  .u-empty {
    padding: 100rpx 0;

    .u-icon__icon {
      font-size: 100rpx !important;
    }

    .u-empty__text {
      font-size: 28rpx !important;
    }
  }

  .u-cell__body__content {
    flex: 0 1 auto !important;
  }

  .u-cell__right-icon-wrap {
    flex: 1 !important;
    margin-left: 50rpx !important;
    justify-content: flex-end !important;
  }

  .u-navbar__content {
    background-color: $main !important;
  }

  // .u-picker__view__column__item {
  //   height: 100rpx !important;
  //   line-height: 100rpx !important;
  // }

  .pages {
    flex: 1;
    display: flex;
    flex-flow: column;
    align-items: center;
    padding-bottom: 45rpx;
  }

  // 公共样式
  // color
  .color-main {
    color: $main
  }

  .color-war {
    color: $war
  }

  .color-suc {
    color: $suc
  }

  .color-fcl {
    color: $fcl
  }

  .color-err {
    color: $err
  }

  .color-tips {
    color: $bg-img
  }

  .red {
    color: #f00
  }

  // background
  .bg {
    background-color: $bgc
  }

  .bg-img {
    background-color: $bg-img;
  }

  .bg-main {
    background-color: $main;
  }

  .bgmn {
    background-color: $bgmn;
  }

  //padding
  .plr-main {
    padding: 0 32rpx;
  }

  /* flex */
  .flex {
    display: flex;
  }

  .flex-s {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .flex-l {
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }

  .flex-r {
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .flex-c {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .flex-start {
    justify-content: flex-start;
  }

  .flex-end {
    justify-content: flex-end;
  }

  .flex-center {
    justify-content: center;
  }

  .flex-around {
    justify-content: space-around;
  }

  .flex-between {
    justify-content: space-between;
  }

  .flex-top {
    align-items: flex-start;
  }

  .flex-middle {
    align-items: center;
  }

  .flex-bottom {
    align-items: flex-end;
  }

  .flex-column {
    flex-direction: column;
  }

  .flex-wrap {
    flex-wrap: wrap;
  }

  .flex-1 {
    flex: 1;
  }

  /* 边框 */
  .border {
    border: $border-width-base solid $bc;
  }

  .border-white {
    border: $border-width-base solid $bgc;
  }

  .border-999 {
    border: $border-width-base solid $fcl;
  }

  .border-b {
    border-bottom: $border-width-base solid $bc;
  }

  .border-t {
    border-top: $border-width-base solid $bc;
  }

  /* 全屏 */
  .vw100 {
    width: 100vw !important;
  }

  .vh100 {
    height: 100vh !important;
  }

  .h100 {
    height: 100% !important;
  }

  .w100 {
    width: 100% !important;
  }

  /* position */
  .fixed {
    position: fixed;
  }

  .fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
  }

  /* 其他 */
  .block {
    display: block;
  }

  .inline-block {
    display: inline-block;
  }

  .hide {
    display: none;
  }

  .show {
    display: block;
  }

  .autowrap {
    word-wrap: break-word;
    word-break: normal;
  }

  .float-l {
    float: left;
  }

  .float-r {
    float: right;
  }

  .text-l {
    text-align: left;
  }

  .text-c {
    text-align: center;
  }

  .text-r {
    text-align: right;
  }

  .bold {
    font-weight: 700;
  }

  // 公共组件
  // tag
  .tag-main {
    height: 48rpx;
    border-radius: 40rpx;
    color: $main;
    font-size: 20rpx;
    background: rgba(63, 93, 239, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16rpx;

    &.tag-err {
      color: $err;
      background: rgba(255, 84, 84, 0.1);
    }

    &.tag-war {
      color: $war;
      background: rgba(255, 168, 1, 0.1);
    }

    &.tag-close {
      color: $fcl;
      background: rgba(102, 102, 102, 0.1);
    }
  }

  // steps
  .steps {
    height: 90rpx;
    margin-top: 78rpx;
    position: relative;

    &::before {
      position: absolute;
      content: '';
      width: 500rpx;
      top: 17rpx;
      left: 50%;
      margin-left: -250rpx;
      border-top: 2rpx dashed $bc;
      z-index: 1;
    }
  }

  .steps-box {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
  }

  .steps-item {
    width: 140rpx;
    display: flex;
    flex-direction: column;
    align-items: center;

    .icon {
      width: 32rpx;
      height: 32rpx;
    }

    text {
      padding-top: 24rpx;
      line-height: 30rpx;
      font-size: 24rpx;
      color: $fcl;

      &.active {
        color: $main;
      }
    }
  }

  //navbar
  .navbar-home-welcome {
    width: 168rpx;
    height: 64rpx;
  }

  .navbar-home-logo {
    width: 90rpx;
    height: 64rpx;
  }

  .navbar-notice-logo {
    width: 178rpx;
    height: 64rpx;
  }

  // tabs
  .tabs {
    height: 120rpx;
    background: $bg-fc;

    text {
      padding: 30rpx 16rpx;
      color: $fcl;

      &.active {
        color: $fc
      }
    }
  }

  .tabs-box {
    width: 100%;
    padding: 0 32rpx;
  }


  //卡片
  .card-box {
    border: 2rpx solid $bc;
    background: $bgc;
    border-radius: 16rpx;
    width: 100%;
    position: relative;

    .head {
      position: absolute;
      top: 74rpx;
      right: 16rpx;
      width: 112rpx;
      height: 112rpx;
      border-radius: 56rpx;
    }

    .is-collect {
      position: absolute;
      top: 60rpx;
      right: 26rpx;
      width: 35rpx;
      height: 35rpx;
    }

    .head-b {
      position: absolute;
      top: 122rpx;
      right: 16rpx;
      width: 112rpx;
      height: 112rpx;
      border-radius: 56rpx;
    }

    .title {
      font-size: 32rpx;
      line-height: 40rpx;

      .more {
        font-size: 26rpx;
        color: $fcl;

        .icon-more {
          margin-left: 6rpx;
        }
      }

      .icon-bond {
        width: 40rpx;
        height: 40rpx;
        margin-left: 16rpx;
      }

      .bond {
        color: $main;
        font-size: 24rpx;
      }

      .tag {
        image {
          width: 40rpx;
          height: 40rpx;
        }
      }

      .date {
        margin: 0;
        font-size: 24rpx;
        color: $fcl-6
      }

      .fh {
        font-size: 20rpx;
      }

      .num {
        font-size: 40rpx;
      }

      .dw {
        font-size: 24rpx;
      }
    }

    .title-l-line {
      line-height: 48rpx;
      padding-left: 16rpx;
      position: relative;

      &::before {
        content: '';
        width: 8rpx;
        height: 28rpx;
        background: $main;
        position: absolute;
        left: 0;
        top: 10rpx;
      }
    }

    .info-box {
      padding-top: 24rpx;
    }

    .info-item {
      line-height: 48rpx;
      color: $fcl-6;
      padding-bottom: 8rpx;

      .location {
        vertical-align: middle;
        display: inline-block;
        width: 48rpx;
        height: 48rpx;
      }
    }

    .company {
      padding-top: 16rpx;
      line-height: 36rpx;
      font-size: 24rpx;
      color: $fcl-6;

      .icon-map {
        width: 36rpx;
        height: 36rpx;
      }
    }

    .post {
      padding-top: 24rpx;
      line-height: 36rpx;
      color: $fcl-6;
    }

    .age {
      padding-top: 16rpx;
      line-height: 32rpx;
      font-size: 22rpx;
      color: $fcl;
    }

    .tel {
      padding-top: 24rpx;
      color: $main;

      .icon {
        width: 36rpx;
        height: 36rpx;
      }
    }

    .trade {
      line-height: 40rpx;
      padding: 32rpx 0;
      color: $fcl;

      &:last-child {
        padding-bottom: 0;
      }
    }

    .contract-text {
      line-height: 40rpx;
      padding: 32rpx 0;
      color: $fcl-6;
    }

    // .contract-text-box{
    //   display: inline-block;
    //   &.block{
    //     display: block;
    //   }
    // }
    .see {
      color: $fcl;
      line-height: 40rpx;

      .date {
        padding: 24rpx 0;
      }
    }

    .take {
      color: $fcl-6;
      line-height: 44rpx;
      font-size: 24rpx;
      margin-top: 16rpx;
    }

    .date {
      color: $fcl;
      margin-top: 16rpx;
      font-size: 24rpx;
    }

    .address {
      line-height: 32rpx;
      margin-top: 16rpx;
      font-size: 22rpx;
      color: $fcl-6;

      .bold {
        padding: 0 8rpx;
      }

      .job {
        color: $main;
      }
    }

    .contacts {
      line-height: 48rpx;
      color: $fcl-6;
      margin-top: 36rpx;

      .grade {
        color: $war;
        font-size: 24rpx;

        .g-num {
          font-size: 48rpx;
        }
      }
    }

    .price,
    .status {
      color: $err;
      line-height: 40rpx;
      margin-top: 24rpx;
      font-size: 36rpx;

      .income {
        color: $suc
      }

      .float-r {
        color: $fcl-6;
        font-size: 20rpx;
      }

      .fh {
        font-size: 20rpx;
      }

      .num {
        font-size: 40rpx;
      }

      .dw {
        font-size: 24rpx;
      }

      .time {
        color: $fcl-6;
        font-size: 20rpx;
      }

      .date {
        color: $fcl;
        font-size: 24rpx;
      }

      .recruit {
        color: $fcl-6;
        font-size: 24rpx;
      }
    }

    .img-list {
      margin-top: 32rpx;
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      // justify-content: space-between;

      .img-item,
      .img-add {
        width: 200rpx;
        height: 152rpx;
        border-radius: 8rpx;
        margin-bottom: 12rpx;
        margin-right: 9rpx;
        background: rgba(63, 93, 239, 0.05);

        &:nth-child(3n) {
          margin-right: 0;
        }
      }

      .img-add {
        display: flex;
        align-items: center;
        justify-content: center;

        image {
          width: 80rpx;
          height: 80rpx;
        }
      }
    }

    .btn-main {
      margin-top: 88rpx;
    }
  }

  // 底部操作区域
  .bottom-box {
    width: 100%;
    padding: 16rpx 16rpx calc(16rpx + #{$safe}) 16rpx;
    background: #f0f4fa;
  }

  //确认按钮
  .btn-main,
  .btn-err,
  .btn-disable {
    height: 96rpx;
    color: $bgc;

    padding: 30rpx;
    border-radius: 16rpx;

    display: flex;
    align-items: center;
    justify-content: center;
  }

  .btn-main {
    border: $border-width-base solid $main;
    background-color: $main;

    // 镂空按钮
    &.btn-hollow {
      background-color: $bgc;
      color: $main;
    }

    &.btn-main-8 {
      background: rgba(63, 93, 239, 0.8);
    }
  }

  // 错误按钮
  .btn-err {
    border: $border-width-base solid $err;
    background-color: $err;

    // 镂空按钮
    &.btn-hollow {
      background-color: $bgc;
      color: $err;
    }


    // &
  }

  // 禁止触发按钮
  .btn-disable {
    border: $border-width-base solid $bg-img;
    background-color: $bg-img;
  }

  // 小号按钮
  .btn-small {
    height: 60rpx;
    // display: inline-block;
    // padding: 10rpx 40rpx;
    font-size: 24rpx;
    border-radius: 12rpx;
  }

  // 迷你按钮
  .btn-mini {
    height: auto;
    display: inline-block;
    padding: 4rpx 8rpx;
    font-size: 24rpx;
    border-radius: 8rpx;
  }

  .btn-care,
  .btn-tel {
    border-radius: 16rpx;
    border: 2rpx solid $bc;
    width: 96rpx;
    height: 96rpx;

    image {
      width: 40rpx;
      height: 40rpx
    }
  }

  // 搜索框
  .search {
    width: 100%;
    padding: 0 32rpx;
    background-color: $main;
  }

  .search-box {
    padding: 0 28rpx 0 32rpx;
    height: 64rpx;
    line-height: 64rpx;
    border-radius: 32rpx;
    background: $bgc;
    border: 2rpx solid #F0F2FF;
    display: flex;
    align-items: center;
    justify-content: space-between;

    text {
      font-size: $fs - 2;
      color: $fcl;
      text-align: left;
      vertical-align: top;
    }

    input {
      width: 90%;
    }

    .search-placeholder {
      font-size: 26rpx;
      color: $fcl;
    }

    image {
      width: 48rpx;
      height: 48rpx;
    }
  }

  .open-sort {
    width: 48rpx;
    height: 48rpx;
    margin-left: 16rpx;

    image {
      width: 48rpx;
      height: 48rpx;
    }
  }

  .icon-more {
    display: inline-block;
    width: 12rpx;
    height: 12rpx;
    transform: rotate(45deg);
    border: 2rpx solid $fcl;
    border-left: 0;
    border-bottom: 0;

    &.icon-m-my-info {
      width: 12rpx;
      height: 12rpx;
      border-color: $bgc;
    }

    &.icon-publish {
      margin-left: 18rpx;
      width: 14rpx;
      height: 14rpx;
    }
  }

  .icon-down {
    display: inline-block;
    width: 16rpx;
    height: 16rpx;
    transform: rotate(135deg);
    border: 2rpx solid $fc;
    border-left: 0;
    border-bottom: 0;
  }

  // 类别选择标签
  .tag-sort-tit {
    font-size: 32rpx;
    padding-bottom: 32rpx;
    line-height: 44rpx;

    .tips {
      font-size: 26rpx;
      color: $bg-img;
    }
  }

  .tag-sort-box {
    margin-bottom: 16rpx;

    text {
      font-size: 26rpx;
      border-radius: 24rpx;
      padding: 12rpx 24rpx;
      margin-right: 32rpx;
      margin-bottom: 32rpx;
      color: $fcl-6;
      background-color: $c-e2;

      &.active {
        color: $bgc;
        background-color: $main;
      }
    }
  }

  //竖向单元格-卡片导航
  .cell-card {
    padding: 32rpx;
    background: $bg-fc;
    border-radius: 16rpx;
    box-shadow: 0px 2px 8px 0px rgba(5, 10, 38, 0.1);
    backdrop-filter: blur(20rpx);
  }

  .cell-card-item {
    background: #fff;
    border-radius: 16rpx;
    border: 2rpx solid $bc;
    padding: 32rpx;
    width: 300rpx;
    height: 172rpx;
    position: relative;

    .title {
      line-height: 38rpx;
      font-size: 32rpx;
    }

    .info {
      padding-top: 42rpx;
      line-height: 30rpx;
      font-size: 24rpx;
    }

    .icon {
      position: absolute;
      right: 16rpx;
      bottom: 16rpx;
    }
  }

  // 横向单元格-文字导航
  .cell-item {
    padding: 16rpx 10rpx 0 0;
    line-height: 100rpx;
    border-bottom: 1px solid $bc;
    display: flex;
    align-items: center;
    justify-content: space-between;

    &:last-child {
      border: 0;
    }

    .icon {
      width: 36rpx;
      height: 36rpx;
      margin-right: 8rpx;
    }
  }

  // 横向单元格-编辑
  .cell-item-info {
    width: 100%;
    padding: 40rpx 0 24rpx;
    border-bottom: 1px solid $bc;

    .title {
      line-height: 40rpx;
      padding-bottom: 24rpx;

      .add {
        width: 32rpx;
        height: 32rpx;
      }
    }

    .box {
      font-size: 26rpx;
      color: $fcl-6;
      padding-right: 16rpx;

      &.no-p,
      .no-p {
        padding: 0
      }

      .head {
        width: 64rpx;
        height: 64rpx;
        border-radius: 32rpx;
        background: $fcl;
      }

      input,
      text,
      textarea {
        font-size: 26rpx;
        line-height: 40rpx;
      }

      .ellipsis {
        @include ellipsis;
        width: 90%;
      }

      .no-have {
        color: $fcl
      }

      .item {
        padding-bottom: 48rpx;
        line-height: 40rpx
      }

      .date {
        padding-bottom: 14rpx;

        input {
          width: 200rpx;
        }

        .delimiter {
          padding: 0 10rpx;
        }

        .minus {
          width: 32rpx;
          height: 32rpx;
          margin-left: 32rpx;
        }
      }
    }
  }

  .status-bar {
    width: 100%;
    height: 52rpx;
  }

  // 登录/角色，岗位选择背景
  .login-bg {
    background: url(https://lg.thaiwe.com/storage/wechat/static/login/top-bg.png) no-repeat top center;
    background-size: 100% auto;
  }

  // u-popup提示
  .popup-wrap {
    padding: 0 32rpx 32rpx;
  }

  .popup-wrap-text {
    width: 600rpx;
  }

  .popup-wrap-modal {
    width: 400rpx;

    .popup-box {
      padding: 56rpx 0 28rpx
    }
  }

  .popup-tit {
    text-align: center;
    padding: 56rpx 0 28rpx;
    font-size: 32rpx;
  }

  .popup-box {
    padding-top: 28rpx;
    max-height: 700rpx;
    overflow-y: scroll;
  }

  .popup-text {
    line-height: 44rpx;
  }

  .popup-bottom {
    padding-top: 32rpx;
  }

  // 系统消息
  .notice-details-title {
    line-height: 36rpx;
    padding-bottom: 20rpx;

    .time {
      font-size: 24rpx;
      color: $fcl-6;
    }
  }

  .notice-details {
    padding: 40rpx 32rpx 60rpx;
    margin-bottom: 64rpx;
  }

  .notice-details-text {
    line-height: 36rpx;
    padding: 32rpx 0;
    font-size: 24rpx;
    color: $fcl;
  }

  .notice-details-more {
    line-height: 40rpx;
    padding: 32rpx 0;
    font-size: 24rpx;
    color: $fcl;
  }
  
  // 提示框
  .slot-content {
    .box {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 40rpx;
  
      ::v-deep .u-icon {
        margin-bottom: 20rpx;
      }
  
      .text {
        line-height: 45rpx;
      }
    }
  }
</style>
